import cn.edu.hbsi.dao.AreaDao;
import cn.edu.hbsi.utils.GetSqlSessionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.After;
import org.junit.Test;

public class testArea
{
    private SqlSession sqlSession = GetSqlSessionUtil.getSqlSession();
    private AreaDao areaDao = sqlSession.getMapper(AreaDao.class);

    @Test
    public void testSelectDriversByAreaName(){
        //查询出北京所有司机的信息
        System.out.println(areaDao.selectDriversByAreaName("北京"));
    }

    @After
    public void destory(){
        sqlSession.commit();
        sqlSession.close();
    }
}
